﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace IotWeek2Day9.EFCore.Migrations
{
    public partial class v3 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.InsertData(
                table: "Emps",
                columns: new[] { "EId", "EName" },
                values: new object[] { 1, "张晓辉" });

            migrationBuilder.InsertData(
                table: "Emps",
                columns: new[] { "EId", "EName" },
                values: new object[] { 2, "石春光" });

            migrationBuilder.InsertData(
                table: "Emps",
                columns: new[] { "EId", "EName" },
                values: new object[] { 3, "李小伟" });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "Emps",
                keyColumn: "EId",
                keyValue: 1);

            migrationBuilder.DeleteData(
                table: "Emps",
                keyColumn: "EId",
                keyValue: 2);

            migrationBuilder.DeleteData(
                table: "Emps",
                keyColumn: "EId",
                keyValue: 3);
        }
    }
}
